package com.scy.hospitalmanager.dao.administratordao;

import com.scy.hospitalmanager.pojo.Patient;
import com.scy.hospitalmanager.pojo.PatientPhysicianOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description: 管理患者信息
 * @ClassName: PatientMsgDao
 * @Author: KuonnjiArisu
 * @Date: 2021/8/9 11:54
 * @Version: 1.0
 */
@Mapper
public interface PatientMsgDao {
    //显示住院患者列表
    List<Patient> getAllPatients();


    /**
     * @return Patient
     * @Author KuonnjiAirsu
     * @Description //TODO 通过患者id查信息
     * @Param Patient
     */
    Patient getPatientById(Patient patient);


    /**
     * @return Patient
     * @Author KuonnjiAirsu
     * @Description //TODO 患者增加
     * @Param null
     */
    int insertPatient(Patient patient);


    /**
     * @return patient
     * @Author KuonnjiAirsu
     * @Description //TODO 患者修改
     * @Param patient
     */
    int updatePatientById();


    /**
     * @return int
     * @Author KuonnjiAirsu
     * @Description //TODO 删除患者
     * @Param id
     */
    int deletePatientById(Patient patient);


    /**
     * @return int
     * @Author KuonnjiAirsu
     * @Description //TODO 增加患者医嘱
     * @Param PatientPhysician
     */

    int insertPatientPhysicianOrder(PatientPhysicianOrder patientPhysicianOrder);

    /**
     * @return int
     * @Author KuonnjiAirsu
     * @Description //TODO 删除患者医嘱
     * @Param PatientPhysicianOrder
     */
    int deletePatientPhysicianOrderById(PatientPhysicianOrder patientPhysicianOrder);


}
